//
//  ThemeEditorsCell.m
//  ZhiHuDaily
//
//  Created by albert on 16/8/28.
//  Copyright © 2016年 albert. All rights reserved.
//

#import "ThemeEditorsCell.h"
#import "ThemeEditorModel.h"

@interface ThemeEditorsCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImgView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *decripLabel;

@end

@implementation ThemeEditorsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setEditorModel:(ThemeEditorModel *)editorModel{
    _editorModel = editorModel;
    
    [self.iconImgView setHeaderIcon:editorModel.avatar];
    self.nameLabel.text = editorModel.name;
    self.decripLabel.text = editorModel.bio;
}

#pragma mark - 更新皮肤
- (void)changeToNightSkin{// 夜间
    self.nameLabel.textColor = JKColor(128, 128, 128);
    self.decripLabel.textColor = JKColor(108, 108, 108);
}

- (void)changeToDaySkin{// 白天
    self.nameLabel.textColor = [UIColor blackColor];
    self.decripLabel.textColor = JKColor(118, 118, 118);
}
@end
